package com.huadi.service.impl;

import com.huadi.dao.TeacherDao;
import com.huadi.domain.Teacher;
import com.huadi.service.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service
public class TeacherServiceImpl implements TeacherService {
    @Autowired
    private TeacherDao teacherDao;
    private Teacher teacher;


    @Override
    public int addTeacher(Teacher teacher) {
        int nums = teacherDao.insertTeacher(teacher);
        return nums;
    }

    @Override
    public List<Teacher> findTeachers() {

        return teacherDao.selectTeachers();
    }

    @Override
    public List<Teacher> login(String Teacher_id, String name) {


        return teacherDao.login(Teacher_id, name);
    }


}
